package com.weiyin.examination.module;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * @author njf
 * @date 2017/9/20
 */

public class RestrictModule implements Parcelable {
    private String leftX;
    private String rightX;
    private String topY;
    private String bottomY;


    protected RestrictModule(Parcel in) {
        leftX = in.readString();
        rightX = in.readString();
        topY = in.readString();
        bottomY = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(leftX);
        dest.writeString(rightX);
        dest.writeString(topY);
        dest.writeString(bottomY);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<RestrictModule> CREATOR = new Creator<RestrictModule>() {
        @Override
        public RestrictModule createFromParcel(Parcel in) {
            return new RestrictModule(in);
        }

        @Override
        public RestrictModule[] newArray(int size) {
            return new RestrictModule[size];
        }
    };

    public String getLeftX() {
        return leftX;
    }

    public void setLeftX(String leftX) {
        this.leftX = leftX;
    }

    public String getRightX() {
        return rightX;
    }

    public void setRightX(String rightX) {
        this.rightX = rightX;
    }

    public String getTopY() {
        return topY;
    }

    public void setTopY(String topY) {
        this.topY = topY;
    }

    public String getBottomY() {
        return bottomY;
    }

    public void setBottomY(String bottomY) {
        this.bottomY = bottomY;
    }

}
